import request from '@/utils/request'

// 查询库存金额预警列表
// export function listMoney(query) {
//   return request({
//     url: '/system/money/list',
//     method: 'get',
//     params: query
//   })
// }
export function listMoney(query) {
  return request({
    url: '/system/money/list',
    method: 'get',
    params: query
  })
}

// 查询库存金额预警详细
export function getMoney(id) {
  return request({
    url: '/system/money/' + id,
    method: 'get'
  })
}

// 新增库存金额预警
export function addMoney(data) {
  return request({
    url: '/system/money',
    method: 'post',
    data: data
  })
}

// 修改库存金额预警
export function updateMoney(data) {
  return request({
    url: '/system/money',
    method: 'put',
    data: data
  })
}

// 删除库存金额预警
export function delMoney(id) {
  return request({
    url: '/system/money/' + id,
    method: 'delete'
  })
}
// 客户名称
export function customerList() {
  return request({
    url: '/system/customer/customerList',
    method: 'get'
  })
}
// 货物品种
export function listowner(query) {
  return request({
    url: '/system/owner/list',
    method: 'get',
    params: query
  })
}
